package ar.edu.utn.frsf.cidisi.ginet.generation.preferformalizationpage.page;

import org.eclipse.jface.preference.FieldEditorPreferencePage;
import org.eclipse.jface.preference.FileFieldEditor;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;

import ar.edu.utn.frsf.cidisi.ginet.generation.preferformalizationpage.Activator;



public class FormalizationPreferencePage extends FieldEditorPreferencePage
		implements IWorkbenchPreferencePage {

	 public FormalizationPreferencePage() {
		    super(GRID);

		  }

		  public void createFieldEditors() {
			  addField(new FileFieldEditor("PATHU2G", "&File to associate UpColbpip elements to GI NET elements:",
			        getFieldEditorParent()));
			  
			  addField(new FileFieldEditor("PATHG2W", "&File to associate GI NET elements to WSCDL elements:",
				        getFieldEditorParent()));
  
		  }

		  @Override
		  public void init(IWorkbench workbench) {
		    setPreferenceStore(Activator.getDefault().getPreferenceStore());
		    setDescription("Choose a file 'formalization' to associate elements");
		  }

}
